{% extends "base.html" %}

{% comment %}
<!--
  Copyright (C) 2010 ZHENG Zhong <http://www.zhengzhong.net/>
  Created on 2010-05-13.
  $Id$
-->
{% endcomment %}

{#________________________________________________________________________________________________#}

{% block html_title %} Restaurants in category {{ category_display|escape }} {% endblock %}

{#________________________________________________________________________________________________#}

{% block sidebar %}

  <div class="section">
    <h2>Categories:</h2>
    <ul>
      {% for category, display in categories %}
        <li><a href="{% url friday.view_restos_by_category category=category %}">{{ display|escape }}</a></li>
      {% endfor %}
    </ul>
  </div>

{% endblock %}

{#________________________________________________________________________________________________#}

{% block content %}

  <div class="section">
    <h1>Restaurants: {{ category_display|escape }} ...</h1>
  </div>

  <div class="section">
    {% include "restos/common/restos.html" %}
    {% if restos.cursor %}
      <div class="pagination">
        <a class="pager" href="?cursor={{ restos.cursor|urlencode }}">Next &raquo;</a>
      </div>
    {% endif %}
  </div>

{% endblock %}

